home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / amos / amoslist-0499 / amoslist / 000082_nobody_Fri Apr 9 16:04:25 1999.msg < prev    next >
Internet Message Format  |  1999-05-17  |  5KB

  1. Received: from onelist.com (pop.onelist.com [209.207.164.205])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id QAA21498
  3.     for <mcox4@osf1.gmu.edu>; Fri, 9 Apr 1999 16:04:25 -0400 (EDT)
  4. Received: (qmail 9690 invoked by alias); 9 Apr 1999 19:32:03 -0000
  5. Received: (qmail 9671 invoked from network); 9 Apr 1999 19:32:02 -0000
  6. Received: from unknown (HELO midway.uchicago.edu) (128.135.12.12) by pop.onelist.com with SMTP; 9 Apr 1999 19:32:02 -0000
  7. Received: from harper.uchicago.edu (root@harper.uchicago.edu [128.135.12.7]) by midway.uchicago.edu (8.9.3/8.9.3) with ESMTP id PAA12143 for <amos-list@onelist.com>; Fri, 9 Apr 1999 15:04:19 -0500 (CDT)
  8. Received: from localhost (IDENT:15273@localhost [127.0.0.1]) by harper.uchicago.edu (8.9.3/8.9.3) with SMTP id PAA09824 for <amos-list@onelist.com>; Fri, 9 Apr 1999 15:04:19 -0500 (CDT)
  9. Date: Fri, 9 Apr 1999 15:04:18 -0500 (CDT)
  10. From: "Scooter D. Matott sXe" <sdmatott@midway.uchicago.edu>
  11. X-Sender: sdmatott@harper.uchicago.edu
  12. To: AMOS List <amos-list@onelist.com>
  13. In-Reply-To: <yam7768.633.3126464@mail.netspace.net.au>
  14. Message-ID: <Pine.GSO.3.95.990409142039.28803A-100000@harper.uchicago.edu>
  15. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  16. Delivered-To: mailing list amos-list@onelist.com
  17. Precedence: bulk
  18. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  19. Reply-to: amos-list@onelist.com
  20. Mime-Version: 1.0
  21. Content-Type: TEXT/PLAIN; charset=US-ASCII
  22. Subject: [amos-list] Re: Icons & Buffering
  23. Status: O
  24. X-Status: 
  25.  
  26. From: "Scooter D. Matott sXe" <sdmatott@midway.uchicago.edu>
  27.  
  28.  
  29.     Leto,
  30.     if you want the screen double buffered you'll have to use Autoback
  31. 0 and manually paste the icons to both planes, ie the Logic and
  32. the Physic screen.  The Physical is what the user sees, the logical
  33. screen is what you draw on.  It's easiest (and most correct) to think
  34. about yourself having two seperate sceens, one that is being shown to the
  35. user and one that you are writing to.  Physical and Logical simple denote
  36. where the two screens are.   Think of screen 1 as being shown in the
  37. physical space, the user sees screen one, screen 2 is then in the
  38. Logical, hidden space, your draw commands go there.  When you 'Screen
  39. Swap' the two screens switch places, screen 1 goes to the logical,
  40. hidden spot and screen 2 moves to the physical, visible spot.  
  41.     So start at the start, Screen 1 is in the physical spot, screen 2
  42. is in the logical spot.  Now draw your icons, they will be drawn to the
  43. screen in the logical spot, screen 2.  Now screen swap, screen 2 appears
  44. before the user with your icons drawn.  Screen 1 goes to the logical spot. 
  45. Notice though that screen 1 is still totally blank, if you screen swap now
  46. and the user will just see a blank screen.  Swap quickly like this and the
  47. icons will flicker like mad on the user's screen.  You will litterly be
  48. swapping between a screen where the icons have been drawn and one where
  49. they haven't been drawn.  
  50.     Ok maybe you needed that refrsher maybe you didn't the point is to
  51. solve your problem you have to be sure and draw to both screens:
  52. something like this:
  53.  
  54.     screen #
  55.     Paste_Icons Routine
  56.     Screen swap
  57.     Wait Vbl
  58.     Paste_Icons Routine
  59.     Screen Swap
  60.     Wait vbl
  61.  
  62.     To do this "in real time" ie w/o a big pause in game-play you'll
  63. have to cordinate this so you paste the icons across two game loops,
  64. each game loop is usually 
  65.     Draw Stuff
  66.     Screen Swap 
  67.  
  68.     That will only draw to one screen. To work right you'll have to to
  69. paste them to screen 1 on one loop and then again paste them to the screen
  70. 2 on the next loop.  Make sense? 
  71.     By the way, sorry all for my disappearance, Spring Break showed up
  72. so I went home to snowy white upstate New York.  Began work on a Road
  73. Warrior game.  Am still interested in Pitfall game, would anyone like to
  74. give it a Ctuhuhlu twist?  My brother has offered to do art work for a
  75. Ctuhulhu game, I told him I'd do Cthululu Kong, but Pitfall would be more
  76. fitting.  Oh sorry, anyway was going to maintain radio silence till I
  77. could write decent responses out to everybody, but couldn't resist urge to
  78. help leto out.  Phys/logic swapping was the toughest thing for me to get
  79. about Amos, largely because of the odd way the manual introduces it.  The
  80. manual takes the attitude: Just Set it on our handy automatic pilot mode
  81. and everything will be buetiful!  It treats the manual mode like it is
  82. only for the most advanced and archane uses, but in practice it is a must,
  83. the 'auto-pilot' is too slow and choppy, if you want anywhere need decent
  84. results you have to use Autoback 0 and do all the screen handling
  85. yourself, but it's not too hard once you get the hang of it.  Just keep in
  86. mind you've got to do everything twice!
  87.  
  88.              Thanks,
  89.                 Scott Matott sXe
  90.                 Chicago, IL USA
  91.  
  92. I don't want no tutti-frutti, no lollipop
  93. Oh, come on baby, just rock, rock, rock
  94.                 Robert Plant, "Boogie with Stu"
  95.  
  96.  
  97. ------------------------------------------------------------------------
  98. You can now easily share photos and documents with your fellow list members
  99. http://www.ONElist.com
  100. Check out our homepage for details on how to use our new shared files feature!
  101. ------------------------------------------------------------------------
  102. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html